package cn.com.sinosoft.ares.insurance.service.constant;

/**
 * Description: 航延险类型
 * Author: lishangmin
 * Created: 2018-08-08 19:06
 */
public enum FlightDelayType {

    DELAY_0102("0102","roomInsureService")
    ;

    private String riskCode;

    private String beanName;

    FlightDelayType(String riskCode, String beanName) {
        this.riskCode = riskCode;
        this.beanName = beanName;
    }

    public static FlightDelayType valueOfRiskCode(String riskCode){
        return FlightDelayType.valueOf("DELAY_" + riskCode);
    }

    public String getRiskCode() {
        return riskCode;
    }

    public String getBeanName() {
        return beanName;
    }

    @Override
    public String toString() {
        return "FlightDelayType{" +
                "riskCode='" + riskCode + '\'' +
                ", beanName='" + beanName + '\'' +
                '}';
    }
}
